<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>多文件上传</title>
</head>
<body>
	<div style="margin: 10px;">
		预览版本，还没有完全实现！<br/>
		出现404错误是因为上传地址不存在。
		<div>
			<div class="fieldset flash" id="fsUploadProgress"></div>
			<div id="divMovieContainer">
				<span id="spanButtonPlaceHolder"></span>
				<div changer="button" config="{onclick:function(){swfu.startUpload();}}">开始上传</div>
			</div>
		</div>
	</div>
	
	<script type="text/javascript">
	var swfu;
	var settings = {
		flash_url : "jdreamer/plugin/swfupload-2.2.0.1/swfupload.swf",
		upload_url: "common/upload.jdmer",
		post_params: {"PHPSESSID" : "test"},
		file_size_limit : "100 MB",
		file_types : "*.*",
		file_types_description : "All Files",
		file_upload_limit : 100,
		file_queue_limit : 0,
		custom_settings : {
			progressTarget : "fsUploadProgress",
			cancelButtonId : "btnCancel"
		},
	
		// Button settings
		button_image_url: "jdreamer/skin/glass/image/button/68X32.png",
		button_width: "68",
		button_height: "32",
		button_placeholder_id: "spanButtonPlaceHolder",
		button_text: '<span class="theFont">选择文件</span>',
		button_text_style: ".theFont { font-size: 12px; }",
		button_text_left_padding: 8,
		button_text_top_padding: 6,
		
		// The event handler functions are defined in handlers.js
		file_queued_handler : fileQueued,
		file_queue_error_handler : fileQueueError,
		upload_start_handler : uploadStart,
		upload_progress_handler : uploadProgress,
		upload_error_handler : uploadError,
		upload_success_handler : uploadSuccess
	};
	swfu = new SWFUpload(settings);
	</script>
	
</body>
</html>